<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>模板继承</title>
    <link rel="stylesheet" href="{{ url_for('static',filename='test.css') }}">
</head>
<body>
{% block head %} <h1>头部</h1> {% endblock %}
{% block content %} <h1>内容部分</h1> {% endblock %}
{% block foot %} <h1>尾部</h1> {% endblock %}
</body>
</html>